#include "textButton.h"

TextButton::TextButton(QWidget* parent){
    this->setParent(parent);
}
TextButton::TextButton(QString text, QWidget* parent){
    this->setText(text);
    this->setParent(parent);
}
void TextButton::mouseReleaseEvent(QMouseEvent *event){
    if(event->button() == Qt::LeftButton){
        emit clickedText(this->text());
    }
    QPushButton::mouseReleaseEvent(event);
}
